package cn.itcast.service;

import cn.itast.domain.Role;
import cn.itast.domain.UserInfo;

import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface IUserService extends UserDetailsService {

    public List<UserInfo> findAll(int page,int size);

    public void save(UserInfo userInfo);

    public UserInfo findById(String userId);

    List<Role> findOtherRole(String userId);

    void addRoleToUser(String userId, String[] roleId);
}
